package com.woniuxy.cloud.procurementassembly.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 周川雄
 * @since 2022-02-21
 */
@Data

public class BatteryOrderProcurementDetailsDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单采购详情ID")
    @TableId(value = "order_procurement_details_id", type = IdType.AUTO)
    private Integer orderProcurementDetailsId;

    @ApiModelProperty(value = "订单关联id")
    @TableField("order_id")
    private Integer orderId;

    @ApiModelProperty(value = "订单关联标号")
    @TableField("order_code")
    private String orderCode;

    @ApiModelProperty(value = "电池类型")
    @TableField("battery_type")
    private String batteryType;

    @ApiModelProperty(value = "电池类型id")
    @TableField("battery_type_id")
    private Integer batteryTypeId;

    @ApiModelProperty(value = "电池价格")
    @TableField("battery_price")
    private Double batteryPrice;

    @ApiModelProperty(value = "电池购买数量")
    @TableField("battery_count")
    private Integer batteryCount;

    @ApiModelProperty(value = "电池实际购买数量")
    @TableField("battery_real_count")
    private Integer batteryRealCount;

    @ApiModelProperty(value = "订单状态 默认为0开启   1为逻辑删除")
    @TableField("order_status")
    private Integer orderStatus;

    @ApiModelProperty(value = "记录新增时间")
    @TableField("raw_add_time")
    private LocalDateTime rawAddTime;

    @ApiModelProperty(value = "记录更新时间")
    @TableField("raw_update_time")
    private LocalDateTime rawUpdateTime;


}
